package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 库存管理对象 d_inventory
 *
 * @author tjm
 * @date 2025-04-16
 */
public class DInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存id */
    private Long id;

    /** 菜品名称 */
    @Excel(name = "菜品名称")
    private String dishname;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long num;

    /** 库存过低线 */
    @Excel(name = "库存过低线")
    private Long inventoryBelow;

    /** 库存超出线 */
    @Excel(name = "库存超出线")
    private Long inventoryExceeds;

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date createtime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDishname(String dishname)
    {
        this.dishname = dishname;
    }

    public String getDishname()
    {
        return dishname;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setInventoryBelow(Long inventoryBelow)
    {
        this.inventoryBelow = inventoryBelow;
    }

    public Long getInventoryBelow()
    {
        return inventoryBelow;
    }
    public void setInventoryExceeds(Long inventoryExceeds)
    {
        this.inventoryExceeds = inventoryExceeds;
    }

    public Long getInventoryExceeds()
    {
        return inventoryExceeds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dishname", getDishname())
            .append("num", getNum())
            .append("createtime", getCreatetime())
            .append("inventoryBelow", getInventoryBelow())
            .append("inventoryExceeds", getInventoryExceeds())
            .toString();
    }
}
